package database

import (
	"go.mongodb.org/mongo-driver/mongo"
)

// 用户注册表
type UserToken struct {
	Uid   uint64 `json:"uid"` // 账户id
	Token string `json:"token"`
}

func (u *UserToken) GetCollecton() (*mongo.Collection, error) {
	return GetCollecton(TBLNAME_USER_TOKEN)
}

func (u *UserToken) GetTableName() string {
	return TBLNAME_USER_TOKEN
}
